<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js字符串和数组对象</title>
</head>
<body>
	
</body>

<script>
	//数组反转
	arr=['linux','php','js'];
	arr2=arr.reverse();

	alert(arr2); //js,php,linux
	
</script>
</html>